<% layout('/layouts/default.html', {title: '任务接收', libs: ['dataGrid']}){ %>
<div class="main-content">
	<div class="box box-main">

		<div class="box-body">
			<#form:form id="searchForm" model="${taskReceiveSeven}" action="${ctx}/audit/dcSupTaskAudit/listDataByTargetId?targetId=${taskReceiveSeven.id}" method="post" class="form-inline"
			data-page-no="${parameter.pageNo}" data-page-size="${parameter.pageSize}" data-order-by="${parameter.orderBy}">
		</#form:form>
		<table id="dataGrid"></table>
		<div id="dataGridPage"></div>
	</div>
</div>
</div>
<% } %>
<script>
	// 初始化DataGrid对象
	$('#dataGrid').dataGrid({
		searchForm: $("#searchForm"),
		sortableColumn: false, // 列表不允许排序
		// showCheckbox: true,
		columnModel: [
			{header:'${text("审核人")}', name:'auditorName', width:150, align:"center"},
			{header:'${text("审核结果")}', name:'auditResult', width:150, align:"center", formatter: function(val, obj, row, act){
					return val=="1"?"通过":"驳回"
				}},
			{header:'${text("审核意见")}', name:'auditOption', width:150, align:"left", frozen:true},
			{header:'${text("审核时间")}', name:'auditTime', width:150, align:"left"},
		],
		// 加载成功后执行事件
		ajaxSuccess: function(data){

		}
	});

</script>